﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using DTO;

namespace BLL
{
    public class PositionBLL
    {
        HospitalDataContext DB = new HospitalDataContext();
        public List<PositionDTO> SelectAll()
        {
            return DB.Positions.Select(n => new PositionDTO
            {
                Position=n.Position1,
                PositionId=n.PositionID,
                Status=n.Status
            }).Where(s=> s.Status=="Enable").ToList();
        }
    }
}
